﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace SmartPlant.Model.DbContext
{
    public class Codelist
    {
        /// <summary>
        /// 枚举字典的id<see cref="Enumerations.Id"/>
        ///</summary>
        [SugarColumn(ColumnName = "CODELIST_NUMBER", IsPrimaryKey = true)]
        public decimal CODELIST_NUMBER { get; set; }

        /// <summary>
        /// 具体下拉值的索引
        ///</summary>
        [SugarColumn(ColumnName = "CODELIST_INDEX", IsPrimaryKey = true)]
        public string CODELIST_INDEX { get; set; }

        /// <summary>
        /// 描述
        ///</summary>
        [SugarColumn(ColumnName = "CODELIST_TEXT")]
        public string CodelistText { get; set; }

        /// <summary>
        /// short描述
        ///</summary>
        [SugarColumn(ColumnName = "CODELIST_SHORT_TEXT")]
        public string CodelistShortText { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CODELIST_CONSTRAINT")]
        public decimal? CodelistConstraint { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CODELIST_SORT_VALUE")]
        public decimal? CodelistSortValue { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CODELIST_ENTRY_DISABLED")]
        public decimal CodelistEntryDisabled { get; set; }

        #region 1
        ///// <summary>
        ///// 所处列表的对象
        ///// </summary>
        //[SugarColumn(IsIgnore = true)]
        //public Enumerations enumerations { get; set; }

        #endregion 1
    }
}
